package com.woniu.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 添加信誉分的form
 */
@Data
@ApiModel("添加信誉分的form")
public class AddCredibilityForm {
    /*
    用户id
     */
    @NotNull(message = "用户id不能为空")
    //@Min(value = 1,message = "用户id必须是正整数")
    @ApiModelProperty("用户id")
    private Long id;
    /*
    本次要添加的积分
     */
    @NotNull(message = "积分不能为空")
    //@Min(value = 1,message = "要添加的积分必须是正整数")
    @ApiModelProperty("本次要添加的积分")
    private Long credibility;

}
